package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.common.ResponseResult;
import com.itheima.pojo.po.Hotel;
import com.itheima.pojo.po.PageByName;

import java.util.List;

public interface HotelService extends IService<Hotel> {
  List<Hotel> findByName(PageByName pageByName);

  ResponseResult<Boolean> deleteById(Integer id);

  ResponseResult<Boolean> addHotel(Hotel hotel);

  ResponseResult<Boolean> updateHotel(Hotel hotel);
}
